// Jesse Phillips
// 3-18-04
// Sub Sandwich for Challenge 4

public class CoastPerPerson
{
	public static void main(String[] args)
	{
		//set var
		int inchesPerPerson =5;
		int sandwich1 = 114, sandwich2 = 93;
		int eatersFor1, eatersFor2,eaters;
		double coastPerInch = .5;
		double coast = (coastPerInch*(sandwich1+sandwich2));
		
		//find eaters for sandwiches
		/*ans bl*/
		eatersFor1 = sandwich1/inchesPerPerson;
		eatersFor2 = sandwich2/inchesPerPerson;
		eaters = eatersFor1 + eatersFor2;
		/*ans ab*/
		
		System.out.println("Each person gets "+inchesPerPerson+" inches.");
		System.out.println("The number of emplies that can eat is "+eaters);
		System.out.println("The coast of your "+sandwich1+" inch and "+sandwich2+" inch sub is $"+(coast/100));
		System.out.println("Each person will pay $"+(coast/eaters)+".");
	}
}
